//
//  LAOMIViewControllerProtocl.h
//  LAOMIKit
//
//  Created by niki on 2019/7/9.
//  Copyright © 2019年 niki. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "LAOMIEmptyErrorViewProtocal.h"


NS_ASSUME_NONNULL_BEGIN
typedef void(^CommonCallBack)(id obj);

typedef void(^LAOMITableCollectionCallback)(void);


@protocol LAOMIViewControllerProtocl <NSObject>

@property(nonatomic,copy)CommonCallBack callback;


@optional
//为了方便响应式交互；n懒得一个界面一个界面添加输入框的回调;
-(void)laomi_textChange:(NSNotification*)note;

//带有集合或者table也不用一个一个去实现下拉刷新上拉加载是否为空是否报错等
+(void)laomi_flushTableOrCollectionData:(UIScrollView<LAOMIEmptyErrorViewProtocal>*)table dataSource:(NSArray*)datasource isMore:(bool)isMore isError:(BOOL)isError errorCallBack:(LAOMITableCollectionCallback)errorCallback refreshCallBack:(LAOMITableCollectionCallback)reflushCallBack pulldownCallBack:(LAOMITableCollectionCallback)pulldownCallBack;

@end

NS_ASSUME_NONNULL_END
